/*
 * jxDao Project (2014)
 * 
 * by Denilson Edinaldo Pinto
 * 
 * LGPL
 * Copyright (C) 2014
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.jxDao.dao.filter;

/**
 * @author Denilson Edinaldo Pinto
 * @porject jxDao
 * @package org.jxDao.dao.filter
 * @date 14/04/2014 - 11:14:20
 */
public final class CustomFilter extends Filter {
	
	private static final long serialVersionUID = -1125520837560539613L;
	
	/**
	 * @param groupBy
	 */
	public CustomFilter(final GroupBy groupBy) {
	
		this("");
		
		groupBy(groupBy);
	}
	
	/**
	 * @param groupBy
	 * @param orderBy
	 */
	public CustomFilter(final GroupBy groupBy, OrderBy orderBy) {
	
		this("");
		
		groupBy(groupBy);
		orderBy(orderBy);
	}
	
	/**
	 * @param orderBy
	 */
	public CustomFilter(final OrderBy orderBy) {
	
		this("");
		
		orderBy(orderBy);
	}
	
	/**
	 * @param sql
	 */
	public CustomFilter(final String sql) {
	
		super("", FilterOperator.CUSTOM, sql);
	}
	
	/**
	 * @param sql
	 * @param groupBy
	 */
	public CustomFilter(final String sql, final GroupBy groupBy) {
	
		super("", FilterOperator.CUSTOM, sql);
		
		groupBy(groupBy);
	}
	
	/**
	 * @param sql
	 * @param groupBy
	 * @param orderBy
	 */
	public CustomFilter(final String sql, final GroupBy groupBy, final OrderBy orderBy) {
	
		super("", FilterOperator.CUSTOM, sql);
		
		groupBy(groupBy);
		orderBy(orderBy);
	}
	
	/**
	 * @param sql
	 * @param orderBy
	 */
	public CustomFilter(final String sql, final OrderBy orderBy) {
	
		super("", FilterOperator.CUSTOM, sql);
		
		orderBy(orderBy);
	}
}
